package com.rmb.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @ClassName RecordMapper
 * @Description TODO
 * @Author lvshook
 * @Date 2021/1/22 8:36
 * @Version 1.0
 **/
public interface RecordMapper {


    /**
     * 查询
     * @param id 用户id
     * @param martApiEssentialId 接口id
     * @param o
     * @return
     */
    @Select("SELECT COUNT(*) FROM mart_api_record where use_time = #{o} and user_info_id = #{id} and mart_api_essential_id = #{martApiEssentialId}")
    int findNum(@Param("id") Long id,@Param("martApiEssentialId") Long martApiEssentialId,@Param("o")Object o);
}
